import request from '@/utils/request'

// 查询舆情处置列表
export function listPublicsentiment(query) {
  return request({
    url: '/publicsentiment/publicsentiment/list',
    method: 'get',
    params: query
  })
}

// 查询舆情处置详细
export function getPublicsentiment(data) {
  return request({
    url: '/publicsentiment/publicsentiment/selectPSById',
    method: 'post',
    data: data
  })
}

// 新增舆情处置
export function addPublicsentiment(data) {
  return request({
    url: '/publicsentiment/publicsentiment',
    method: 'post',
    data: data
  })
}

// 修改舆情处置
export function updatePublicsentiment(data) {
  return request({
    url: '/publicsentiment/publicsentiment',
    method: 'put',
    data: data
  })
}

// 删除舆情处置
export function delPublicsentiment(id) {
  return request({
    url: '/publicsentiment/publicsentiment/' + id,
    method: 'delete'
  })
}

// 导入下载模板
export function importTemplate() {
  return request({
    url: '/publicsentiment/publicsentiment/importTemplate' ,
    method: 'get'
  })
}

// 舆情处置--分派
export function apportionPublicsentiment(data) {
  return request({
    url: '/publicsentiment/publicsentiment/apportion',
    method: 'post',
    data: data
  })
}

// 应对策略数据
export function getStrategyList(data) {
  return request({
    url: '/publicsentiment/publicsentiment/StrategyByInvolved',
    method: 'post',
    data: data
  })
}

//舆情签收
export function publicsentimentSign(data) {
  return request({
    url: '/publicsentiment/publicsentiment/sign',
    method: 'post',
    data: data
  })
}


//舆情反馈
export function publicsentimentFeedback(data) {
  return request({
    url: '/publicsentiment/publicsentiment/dispose',
    method: 'post',
    data: data
  })
}

//舆情处置情况
export function getPublicFeedbackList(data) {
  return request({
    url: '/publicsentiment/publicsentiment/taskList',
    method: 'post',
    data: data
  })
}

//操作记录
export function getOperatingRecordList(data) {
  return request({
    url: '/publicsentiment/publicsentiment/selectOperation',
    method: 'post',
    data: data
  })
}

//已读
export function readNews(data) {
  return request({
    url: '/publicsentiment/publicsentiment/read',
    method: 'post',
    data: data
  })
}

//关注
export function specialFocus(data) {
  return request({
    url: '/publicsentiment/publicsentiment/specialFocus',
    method: 'post',
    data: data
  })
}
